package com.hnucm.shopapp.ui.register;

import com.hnucm.shopapp.bean.BaseBean;
import com.hnucm.shopapp.network.RetrofitClient;
import com.hnucm.shopapp.network.service.UserService;

import io.reactivex.rxjava3.core.Flowable;
import okhttp3.RequestBody;

public class RegisterModel implements RegisterContract.IRegisterModel {
    @Override
    public Flowable<BaseBean<Boolean>> addUser(RequestBody body) {
        return RetrofitClient.getInstance().getService(UserService.class).addUser(body);
    }
}
